<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container1,
      .container2 {
        width: 800px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div class="container1"></div>
    <div class="container2"></div>
    <script src="./js/echarts.min.js"></script>
    <script>
      const myEcharts1 = echarts.init(document.querySelector(".container1"));
      const option1 = {
        xAxis: {
          data: ["星期一", "星期二", "星期三", "星期四"],
        },
        yAxis: {},
        series: {
          data: [20, 30, 50, 30],
          type: "line",
        },
      };
      myEcharts1.setOption(option1);

      const myEcharts2 = echarts.init(document.querySelector(".container2"));
      const option2 = {
        xAxis: {
          data: ["星期一", "星期二", "星期三", "星期四"],
        },
        yAxis: {},
        series: {
          data: [20, 30, 50, 30],
          type: "bar",
        },
      };
      myEcharts2.setOption(option2);
    </script>
  </body>
</html>
